<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>spring</title>
    <style>
      body {
        background-color: black;
      }
      .item {
        position: absolute;
        background-color: transparent;
        width: calc(var(--i) * 25px);
        border: 10px solid rgb(0, 200, 255);
        border-radius: 50%;
        transform: rotateX(70deg);
        /* x y 纵横比  */
        /* aspect-ratio: 16 / 9;  */
        /* aspect-ratio: 4 / 3;  */
        aspect-ratio: 1;
      }
      .container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 50vh;
      }
      .item {
        animation: move 3s ease-in-out calc(var(--i) * 0.08s) infinite;
      }
      @keyframes move {
        0%,
        100% {
          transform: rotateX(70deg) translateY(0px);
          filter: hue-rotate(0deg);
        }
        50% {
          transform: rotateX(70deg) translateY(-35vw);
          filter: hue-rotate(100deg);
        }
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="item" style="--i: 0"></div>
      <div class="item" style="--i: 1"></div>
      <div class="item" style="--i: 2"></div>
      <div class="item" style="--i: 3"></div>
      <div class="item" style="--i: 4"></div>
      <div class="item" style="--i: 5"></div>
      <div class="item" style="--i: 6"></div>
      <div class="item" style="--i: 7"></div>
      <div class="item" style="--i: 8"></div>
      <div class="item" style="--i: 9"></div>
      <div class="item" style="--i: 10"></div>
    </div>
  </body>
</html>
